package com.gitee.maskit.data.redis;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.ObjectProvider;

public class NopObjectProvider<T> implements ObjectProvider<T> {
    private static final NopObjectProvider<Object> INSTANCE =
        new NopObjectProvider<Object>();

    public static <T> ObjectProvider<T> get() {
        return (ObjectProvider<T>) INSTANCE;
    }

    public T getObject(Object... args) throws BeansException {
        return null;
    }

    public T getIfAvailable() throws BeansException {
        return null;
    }

    public T getIfUnique() throws BeansException {
        return null;
    }

    public T getObject() throws BeansException {
        return null;
    }
}
